﻿package phpas3{

	public function call_user_func_array( callback:*, param_arr:Array ):*{
		if( callback is Array ){
			var instance = callback[0];
			var methodName_str:String = callback[1];
			return instance[methodName_str].apply( null, param_arr );
		} else if( callback is String ){
			return callback.apply( null, param_arr );
		}
	}

}